
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGFileGrabForeground.h>
#include <OpenSG/OSGFileGrabForegroundBase.h>
#include <OpenSG/OSGViewport.h>
#include <OpenSG/OSGDrawAction.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_FileGrabForeground_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_FileGrabForeground()
{
    scope* osg_FileGrabForegroundBase_scope = new scope(
    class_< osg::FileGrabForegroundBase, bases< osg::GrabForeground > , boost::noncopyable >("FileGrabForegroundBase", no_init)
        .def_readonly("NameFieldMask", &osg::FileGrabForegroundBase::NameFieldMask)
        .def_readonly("FrameFieldMask", &osg::FileGrabForegroundBase::FrameFieldMask)
        .def_readonly("IncrementFieldMask", &osg::FileGrabForegroundBase::IncrementFieldMask)
        .def_readonly("MTInfluenceMask", &osg::FileGrabForegroundBase::MTInfluenceMask)
        .def("getClassType", &osg::FileGrabForegroundBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::FileGrabForegroundBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::FileGrabForegroundBase::*)() )&osg::FileGrabForegroundBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::FileGrabForegroundBase::*)() const)&osg::FileGrabForegroundBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::FileGrabForegroundBase::getContainerSize)
        //.def("getName", (std::string& (osg::FileGrabForegroundBase::*)() )&osg::FileGrabForegroundBase::getName, return_value_policy< copy_const_reference >())
        .def("getName", (const std::string& (osg::FileGrabForegroundBase::*)() const)&osg::FileGrabForegroundBase::getName, return_value_policy< copy_const_reference >())
        //.def("getFrame", (osg::UInt32& (osg::FileGrabForegroundBase::*)() )&osg::FileGrabForegroundBase::getFrame, return_value_policy< copy_const_reference >())
        .def("getFrame", (const osg::UInt32& (osg::FileGrabForegroundBase::*)() const)&osg::FileGrabForegroundBase::getFrame, return_value_policy< copy_const_reference >())
        //.def("getIncrement", (bool& (osg::FileGrabForegroundBase::*)() )&osg::FileGrabForegroundBase::getIncrement, return_value_policy< copy_const_reference >())
        .def("getIncrement", (const bool& (osg::FileGrabForegroundBase::*)() const)&osg::FileGrabForegroundBase::getIncrement, return_value_policy< copy_const_reference >())
        .def("setName", &osg::FileGrabForegroundBase::setName)
        .def("setFrame", &osg::FileGrabForegroundBase::setFrame)
        .def("setIncrement", &osg::FileGrabForegroundBase::setIncrement)
        .def("getBinSize", &osg::FileGrabForegroundBase::getBinSize)
        .def("copyToBin", &osg::FileGrabForegroundBase::copyToBin)
        .def("copyFromBin", &osg::FileGrabForegroundBase::copyFromBin)
        .def("create", &osg::FileGrabForegroundBase::create)
        .def("createEmpty", &osg::FileGrabForegroundBase::createEmpty)
        .def("shallowCopy", &osg::FileGrabForegroundBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::FileGrabForegroundBase::NextFieldId;
    scope().attr("FrameFieldId") = (int)osg::FileGrabForegroundBase::FrameFieldId;
    scope().attr("NameFieldId") = (int)osg::FileGrabForegroundBase::NameFieldId;
    scope().attr("IncrementFieldId") = (int)osg::FileGrabForegroundBase::IncrementFieldId;

    delete osg_FileGrabForegroundBase_scope;

    class_< osg::FileGrabForeground, bases< osg::FileGrabForegroundBase > , boost::noncopyable, osg::FileGrabForegroundRefPtr >("FileGrabForeground", no_init)
        .def("changed", &osg::FileGrabForeground::changed)
        .def("dump", &osg::FileGrabForeground::dump, osg_FileGrabForeground_dump_overloads_0_2())
    ;


    register_ptr_to_python<osg::FileGrabForegroundPtr>();
    implicitly_convertible<osg::FileGrabForegroundRefPtr, osg::FileGrabForegroundPtr>();
    implicitly_convertible<osg::FileGrabForegroundPtr, osg::GrabForegroundPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::FileGrabForegroundPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::FileGrabForegroundPtr>);
}

